function User(name, age) {
  this.name = name;
  this.age = age;
}
User.prototype.show = function() {
  console.log(this.name, this.age);
};

function Admin(...args) {
  User.apply(this, args);
}
Admin.prototype = Object.create(User.prototype);
Admin.prototype.constructor = Admin;

function Member(...args) {
  User.apply(this, args);
}
Member.prototype = Object.create(User.prototype);
Member.prototype.constructor = Member;

let xj = new Admin("向边", 18);
xj.show();
let lisi = new Member("李四", 19);
lisi.show();
